package org.zfes.snowier.zbss.xzy.router.user.vedio;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.zfes.snowier.core.data.DataSet;
import org.zfes.snowier.web.controller.BaseController;
import org.zfes.snowier.zbss.xzy.biz.vedio.model.DeviceVedioDir;
import org.zfes.snowier.zbss.xzy.biz.vedio.service.IDeviceVedioDirService;
import org.zfes.snowier.zbss.xzy.vedio.VedioDirDto;
import org.zfes.snowier.core.data.SelectVo;
@Controller("org.zfes.snowier.zbss.xzy.router.user.vedio.VedioController") 
@RequestMapping("/api/device/face/vedio")
public class VedioController implements BaseController {

	
	@Autowired
	private IDeviceVedioDirService deviceVedioDirService;
	
	@RequestMapping(value="/loadDeviceVedioDir/{deviceId}", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
	public @ResponseBody  Object loadDeviceVedioDir(@PathVariable("deviceId")Long deviceId){
		List<DeviceVedioDir> vedioDirs = deviceVedioDirService.loadVedioDirByDeviceId(deviceId);
		return ajaxQuery("vedioDirs",vedioDirs);
	}
	
    
}